<template>
  <div class="container">
    <TitleBox></TitleBox>  
    <div class="mine-chongzhi">
      <div class="chongzhi-head flex-box">
        <div class="imgbox flex-box">
          <img src="../assets/img/tx-a001.jpg">
          <div class="name-img">
            <h4>盐田王力宏</h4>
            <p>基因科技造福人类</p>
          </div>
        </div>
        <h3>余额：50.00元</h3>
      </div>
      <div class="chongzhi-main">
        <div class="chongzhi-inputbox">
          <input type="text">
        </div>
        <div class="buttons flex-box">
          <button>10元</button>
          <button>30元</button>
          <button>100元</button>
          <button>10元</button>
          <button>30元</button>
          <button>100元</button>
          <button>10元</button>
          <button>30元</button>
          <button>100元</button>
        </div>
        <button class="commit">确认充值</button>
      </div>
    </div>
  </div>
</template>

<script>
// @ is an alias to /src
import TitleBox from '../components/TitleBox.vue'
export default {
  name: 'home',
  data() {
    return {
      lists: ''
    }
  },
  components: {
    TitleBox
  },
  computed: {},
  methods: {},
  mounted() {}
}
</script>
<style lang="scss" scoped>
.mine-chongzhi {
  max-width: 750px;
  margin: 0 auto;
  .chongzhi-head {
    width: 100%;
    height: r(86);
    padding-left: r(15);
    padding-right: r(15);
    box-sizing: border-box;
    justify-content: space-between;
    -webkit-justify-content: space-between;
    border-bottom: 1px solid #f7f7f7;
    border-bottom-width: r(10);
    .imgbox {
      img {
        width: r(40);
        height: r(40);
        border-radius: 40px;
        overflow: hidden;
        margin-right: r(15);
      }
      .name-img {
        h4 {
          font-size: r(16);
          color: #2f2f2f;
          line-height: r(18);
          margin-bottom: r(10);
        }
        p {
          font-size: r(11);
          color: #999999;
        }
      }
    }
    h3 {
      font-size: r(18);
      color: #6dbbfe;
    }
  }
  .chongzhi-main {
    padding-left: r(15);
    padding-right: r(15);
    box-sizing: border-box;
    .chongzhi-inputbox {
      width: 100%;
      border-bottom: 1px solid #dedede;
      input {
        width: 100%;
        text-align: center;
        border: none;
        outline: none;
        font-size: r(24);
        color: #666666;
        margin-top: r(45);
        margin-bottom: r(26);
      }
    }
    .buttons {
      justify-content: space-between;
      -webkit-justify-content: space-between;
      flex-wrap: wrap;
      -webkit-flex-wrap: wrap;
      button {
        width: r(109);
        height: r(40);
        background: #fff;
        border: 1px solid #dedede;
        border-radius: 50px;
        box-sizing: border-box;
        font-size: r(16);
        margin-top: r(28);
        color: #666666;
        &.active {
          background: #6dbbfe;
          border: none;
          color: #fff;
        }
      }
    }
    button.commit {
      width: 100%;
      height: r(50);
      border: none;
      border-radius: 50px;
      font-size: r(16);
      margin-top: r(28);
      color: #ffffff;
      background: #ccc;
    }
    button.active {
      background: -webkit-linear-gradient(right, #86d1fc, #4ea4f7);
      background: linear-gradient(left, #86d1fc, #4ea4f7);
    }
  }
}
</style>
